﻿using Sys.Core.Models.Dto;
using Sys.Core.Models.Queries;
using Sys.Core.Models.VO;
using Sys.Core.Services;
using MiniFox.Components;
using MiniFox.Infrastructure;
using MiniFox.Security.Text;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sys.Core
{
    /// <summary>
    /// 
    /// </summary>
    [AutoRegister, SpareComponent(typeof(UserService))]
    public interface IUserService
    {
        ResultObject<IEnumerable<UserVo>> Query(PagedQueryObject<UserQuery> request);
        UserVo Item(string userId);
        UserVo Create(UserDto user);
        UserVo Update(UserDto user);
        void ResetPwd(string userId);
        Cipher CreateCipher(string password);
    }
}
